package com.xiaozhichao.provider.spi;

import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.rpc.Invocation;
import com.alibaba.dubbo.rpc.Invoker;
import com.alibaba.dubbo.rpc.RpcException;
import com.alibaba.dubbo.rpc.cluster.LoadBalance;

import java.util.List;
import java.util.Random;

public class SelfLoadBalance implements LoadBalance {
    public static final String NAME = "random";
    private final Random random = new Random();



    @Override
    public <T> Invoker<T> select(List<Invoker<T>> list, URL url, Invocation invocation) throws RpcException {
        return null;
    }
}
